#!/bin/bash
set -ex
cd $HOME

export PATH=/opt/helpers:$PATH
export PATH=/scripts:$PATH
sudo chown -R user /home/user/src/mycroft-gui || true

build-kde-dependencies --withProject kconfig kcoreaddons kguiaddons ki18n kirigami
build-cmake lottie-qml https://github.com/kbroulik/lottie-qml

APK_ARGS=`python3 /opt/helpers/get-apk-args.py /home/user/src/mycroft-gui`
build-cmake mycroft-gui "<irrelevant>" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_VERBOSE_MAKEFILE=ON  -DBUILD_TESTING=OFF -DANDROID_APK_OUTPUT_DIR=/output $APK_ARGS $@
create-apk mycroft-gui
